<template>
  <div>
   <el-table
    :data="tableData"
    border
    style="width: 98%;margin:20px;">
    <el-table-column
      prop="nickname"
      label="姓名">
    </el-table-column>
    <el-table-column
      prop="createdAt"
      label="充值时间">
    </el-table-column>
    <el-table-column
      prop="DownloadNum"
      label="积分（个）">
    </el-table-column>
    <el-table-column
      prop="DownloadMoney"
      label="充值金额">
    </el-table-column>
    
    <el-table-column
      label="充值状态">

      <template slot-scope="scope">
          <span v-if="scope.row.status == 0">未支付</span>
          <span v-if="scope.row.status == 1">已支付</span>
      </template>
    </el-table-column>
  </el-table>
  </div>
</template>

<script>
import { PointsGet } from "@/api/member";
export default {
  data() {
    return {
        tableData:[]
    };
  },
  methods: {
    getData() {
      PointsGet().then(res => {
          this.tableData = res.data.data.data
      });
    }
  },
  mounted() {
    this.getData();
  }
};
</script>

<style>
</style>